<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>评价回复</title>


    <link rel="stylesheet" type="text/css" href="/css/webbase.css" />
    <link rel="stylesheet" type="text/css" href="/css/pages-seckillOrder.css" />

    <script type="text/javascript" src="/js/plugins/jquery/jquery.min.js"></script>

    <!--bootstrap-toastr-->
    <script type="text/javascript" src="/bootstrap/toastr/toastr.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/bootstrap/toastr/toastr.css">
    <!--bootStrap-fileinput-->
    <script type="text/javascript" src="/bootstrap/bootstrap-fileinput/js/fileinput.min.js"></script>
    <script type="text/javascript" src="/bootstrap/bootstrap-fileinput/js/locales/zh.js"></script>
    <link rel="stylesheet" type="text/css" href="/bootstrap/bootstrap-fileinput/css/fileinput.min.css">

    <style>
        .file-drop-zone{
            border: 1px dashed #aaa;
            border-radius: 4px;
            height: 30%;
            text-align: center;
            vertical-align: middle;
            margin: 12px 15px 12px 12px;
            padding: 5px;
        }
    </style>
    <script>

        // var goodsid = $("#goodsId").val();
        function insertEvluateReply() {
            $.ajax({
                url : "/comment/insertEvluateReply",
                type : "post",
                data : $("#evluateForm").serialize(),
                dataType : "json",
                success : function (result) {
                    if (result.code == 200) {
                        var goodsid = result.data;
                        alert("评价回复成功");
                    } else {
                        alert("评价回复失败");
                    }
                },
                error : function (returnData) {
                    alert("系统错误");
                    console.log(returnData);
                }
            })
        }
    </script>
</head>
<body>
<h2 align="center">评价回复</h2>
<table align="center">
    <form id="evluateForm">
        <tr>
            <td>
                <input type="hidden" name="uuid" th:value="${id}" readonly="readonly">
            </td>
        </tr>
        <tr>
            <td>
                <input type="hidden" id="goodsId" name="goodsId" th:value="${goodsId}" readonly="readonly">
            </td>
        </tr>
        <tr>
            <td>回复内容</td>
            <td>
                <textarea name="reply"></textarea>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <input type="button" value="评价提交" onclick="insertEvluateReply()">
            </td>
        </tr>
    </form>
</table>
</body>
</html>